package com.bysj.agent.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;

import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;

@AiService(wiringMode = EXPLICIT,
        chatModel = "openAiChatModel",
//        chatMemory = "chatMemory" 无对话隔离功能
        chatMemoryProvider = "chatMemoryProvider",
        tools = "systemTools"
)
public interface SystemAssistant {
    @SystemMessage(fromResource = "system-prompt-template.txt")
//    @UserMessage("回复时不要添加表情，只用文字回复即可")
    String chat(@MemoryId Long memoryId, @UserMessage String message);
}
